package gases.as3.librarys.components.skin.data
{
	import flash.geom.Rectangle;
	
	import gases.as3.librarys.core.Interface.IDispose;

	public class BaseSkin  implements IDispose
	{
		/**
		 * 九宫格定位矩形 
		 */		
		public var scaleRect:Rectangle;
		
		/**
		 * 皮肤原始宽度 
		 */		
		public var width:Number;
		
		/**
		 * 皮肤的原始高度 
		 */		
		public var height:Number;
		
		/**
		 * 皮肤的标识名称 
		 */		
		public var skinname:String;
		
		public function BaseSkin()
		{
		}
		
		/**
		 * 设置样式 
		 */		
		public function setStylesProperty(style:SkinStyleData):void
		{
			var property:String = style.targetProperty;
			var obj:Object = style.data;
			
			if(this.hasOwnProperty(property))
			{
				this[property] = obj;
			}
		}
		
		public function dispose():void
		{
			scaleRect = null;
		}
	}
}

